package com.ems.controller.user;

import com.ems.pojo.data.RequestData;
import com.ems.pojo.data.ResultData;
import com.ems.pojo.data.ReturnPageResult;
import com.ems.service.user.ApplyRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @Auther: 伟伟
 * @Date: 2020/2/28
 * @Description: 描述
 * @Version: 1.0
 */
@Controller
@CrossOrigin //允许所有ip跨域
@RequestMapping("/applyRoom")
public class ApplyRoomController {

    @Autowired
    @Qualifier("applyRoomService")
    private ApplyRoomService applyRoomService;

    @ResponseBody
    @RequestMapping("/getStudentApply")
    public ResultData getStudentApply(@RequestBody RequestData requestData){
        ReturnPageResult.setPageHelperInfo(requestData);
        List list = null;
        return ReturnPageResult.AssemblyData(list);
    }


}
